from django.urls import re_path
from rest_framework.urlpatterns import format_suffix_patterns

from .apps import CurrentAppConfig
from .views import *


app_name = CurrentAppConfig.name


urlpatterns = format_suffix_patterns([
    re_path(r'^product_sales/$', ProductSalesListView.as_view(), name='product_sales'),
    re_path(r'^product_sales_all/$', ProductSalesAllListView.as_view(), name='product_sales_all'),
    re_path(r'^product_sales/(?P<pk>[0-9]+)/$', ProductSalesRetrieveAPIView.as_view(), name='product_sale'),
    ])
